//
//  KLSGBfifSpeakView.m
//  KaoLaShiGuangFM
//
//  Created by lanou3g on 15/10/29.
//  Copyright © 2015年 com.lanou3g. All rights reserved.
//

#import "KLSGBfifSpeakView.h"

@implementation KLSGBfifSpeakView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self addSubviews];
    }
    return self;
}

- (void)addSubviews
{
    self.bgImageView= [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth, 170)];
    self.bgImageView.userInteractionEnabled = YES;
    self.bgImageView.alpha = kAlpha;
    [self addSubview:self.bgImageView];
    
    self.speakImage = [[UIImageView alloc] initWithFrame:CGRectMake((kScreenWidth - 80) / 2, 20, 80, 80)];
    self.speakImage.layer.cornerRadius = self.speakImage.frame.size.width / 2;
    self.speakImage.layer.masksToBounds = YES;
    [self addSubview:self.speakImage];
    
    self.nameLable = [[UILabel alloc] initWithFrame:CGRectMake((kScreenWidth - 100) / 2, CGRectGetMaxY(self.speakImage.frame), 100, 40)];
//    self.nameLable.backgroundColor = [UIColor greenColor];
    self.nameLable.textAlignment = NSTextAlignmentCenter;
    self.nameLable.textColor = [UIColor whiteColor];
    [self addSubview:self.nameLable];
    
    self.brifLable = [[UILabel alloc] initWithFrame:CGRectMake((kScreenWidth - kScreenWidth / 2) / 2, CGRectGetMaxY(self.nameLable.frame), kScreenWidth / 2, 30)];
//    self.brifLable.backgroundColor = [UIColor greenColor];
    self.brifLable.font = [UIFont systemFontOfSize:13];
    self.brifLable.textColor = [UIColor whiteColor];
    [self addSubview:self.brifLable];
    
    self.button = [UIButton buttonWithType:(UIButtonTypeCustom)];
    self.button.frame = CGRectMake(CGRectGetMaxX(self.brifLable.frame) + 10, CGRectGetMaxY(self.nameLable.frame) + 3, 30, 30);
    [self.button setBackgroundImage:[UIImage imageNamed:@"umeng_fb_arrow_right"] forState:(UIControlStateNormal)];
    [self addSubview:self.button];
}



@end
